home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / prefs.dxr / 00020_alert messages radio button.ls < prev    next >
Encoding:
Text File  |  2000-01-14  |  447 b   |  22 lines

  1. property ancestor, pIsOn
  2. global gIsAlertMessagesOn
  3.  
  4. on new me, buttonName, castName, xSprite, xLoc, IsOn, descendant
  5.   if objectp(descendant) then
  6.     PassVar = descendant
  7.   else
  8.     PassVar = me
  9.   end if
  10.   ancestor = new(script("one selected radio button"), buttonName, castName, xSprite, xLoc, PassVar)
  11.   pIsOn = IsOn
  12.   return me
  13. end
  14.  
  15. on performFunction me
  16.   tell the stage
  17.     playSFX(9)
  18.   end tell
  19.   gIsAlertMessagesOn = pIsOn
  20.   return me
  21. end
  22.